<template>
    <div>
        <Modal v-model="modal.search" title="高级搜索" width="1020">
            <Form ref="searchForm" :model="searchForm" :label-width="120">
                <Row>
	<i-col span="12">
	<FormItem label="收货地址编号"><Row>
	<i-col span="11">
	<FormItem prop="idMin">
	<InputNumber v-model="searchForm.idMin" placeholder="请输入开始收货地址编号" style="width: 100%;"/>
</FormItem>
</i-col>
	<i-col span="2" style="text-align: center">-</i-col>
	<i-col span="11">
	<FormItem prop="idMax">
	<InputNumber v-model="searchForm.idMax" placeholder="请输入结束收货地址编号" style="width: 100%;"/>
</FormItem>
</i-col>
</Row>
</FormItem>
</i-col><i-col span="12">
	<FormItem label="用户编号"><Row>
	<i-col span="11">
	<FormItem prop="userIdMin">
	<InputNumber v-model="searchForm.userIdMin" placeholder="请输入开始用户编号" style="width: 100%;"/>
</FormItem>
</i-col>
	<i-col span="2" style="text-align: center">-</i-col>
	<i-col span="11">
	<FormItem prop="userIdMax">
	<InputNumber v-model="searchForm.userIdMax" placeholder="请输入结束用户编号" style="width: 100%;"/>
</FormItem>
</i-col>
</Row>
</FormItem>
</i-col><i-col span="12">
	<FormItem label="收件人" prop="realName" label-for="realName">
	<Input v-model="searchForm.realName" element-id="realName" placeholder="请输入收件人" clearable/>
</FormItem>
</i-col><i-col span="12">
	<FormItem label="手机号" prop="phone" label-for="phone">
	<Input v-model="searchForm.phone" element-id="phone" placeholder="请输入手机号" clearable/>
</FormItem>
</i-col><i-col span="12">
	<FormItem label="省" prop="province" label-for="province">
	<Input v-model="searchForm.province" element-id="province" placeholder="请输入省" clearable/>
</FormItem>
</i-col><i-col span="12">
	<FormItem label="市" prop="city" label-for="city">
	<Input v-model="searchForm.city" element-id="city" placeholder="请输入市" clearable/>
</FormItem>
</i-col><i-col span="12">
	<FormItem label="区/县" prop="district" label-for="district">
	<Input v-model="searchForm.district" element-id="district" placeholder="请输入区/县" clearable/>
</FormItem>
</i-col><i-col span="12">
	<FormItem label="地址别名" prop="addressAlias" label-for="addressAlias">
	<Input v-model="searchForm.addressAlias" element-id="addressAlias" placeholder="请输入地址别名" clearable/>
</FormItem>
</i-col><i-col span="12">
	<FormItem label="详细地址" prop="address" label-for="address">
	<Input v-model="searchForm.address" element-id="address" placeholder="请输入详细地址" clearable/>
</FormItem>
</i-col><i-col span="12">
	<FormItem label="是否默认"><Row>
	<i-col span="11">
	<FormItem prop="isDefaultMin">
	<InputNumber v-model="searchForm.isDefaultMin" placeholder="请输入开始是否默认" style="width: 100%;"/>
</FormItem>
</i-col>
	<i-col span="2" style="text-align: center">-</i-col>
	<i-col span="11">
	<FormItem prop="isDefaultMax">
	<InputNumber v-model="searchForm.isDefaultMax" placeholder="请输入结束是否默认" style="width: 100%;"/>
</FormItem>
</i-col>
</Row>
</FormItem>
</i-col><i-col span="12">
	<FormItem label="版本号"><Row>
	<i-col span="11">
	<FormItem prop="versionMin">
	<InputNumber v-model="searchForm.versionMin" placeholder="请输入开始版本号" style="width: 100%;"/>
</FormItem>
</i-col>
	<i-col span="2" style="text-align: center">-</i-col>
	<i-col span="11">
	<FormItem prop="versionMax">
	<InputNumber v-model="searchForm.versionMax" placeholder="请输入结束版本号" style="width: 100%;"/>
</FormItem>
</i-col>
</Row>
</FormItem>
</i-col><i-col span="12">
	<FormItem label="创建时间"><Row>
	<i-col span="11">
	<FormItem prop="createTimeMin">
	<DatePicker @on-change="searchForm.createTimeMin=$event" :value="searchForm.createTimeMin" placeholder="请输入开始创建时间" type="datetime" format="yyyy-MM-dd HH:mm:ss" style="width: 100%;" clearable></DatePicker>
</FormItem>
</i-col>
	<i-col span="2" style="text-align: center">-</i-col>
	<i-col span="11">
	<FormItem prop="createTimeMax">
	<DatePicker @on-change="searchForm.createTimeMax=$event" :value="searchForm.createTimeMax" placeholder="请输入结束创建时间" type="datetime" format="yyyy-MM-dd HH:mm:ss" style="width: 100%;" clearable></DatePicker>
</FormItem>
</i-col>
</Row>
</FormItem>
</i-col><i-col span="12">
	<FormItem label="更新时间"><Row>
	<i-col span="11">
	<FormItem prop="updateTimeMin">
	<DatePicker @on-change="searchForm.updateTimeMin=$event" :value="searchForm.updateTimeMin" placeholder="请输入开始更新时间" type="datetime" format="yyyy-MM-dd HH:mm:ss" style="width: 100%;" clearable></DatePicker>
</FormItem>
</i-col>
	<i-col span="2" style="text-align: center">-</i-col>
	<i-col span="11">
	<FormItem prop="updateTimeMax">
	<DatePicker @on-change="searchForm.updateTimeMax=$event" :value="searchForm.updateTimeMax" placeholder="请输入结束更新时间" type="datetime" format="yyyy-MM-dd HH:mm:ss" style="width: 100%;" clearable></DatePicker>
</FormItem>
</i-col>
</Row>
</FormItem>
</i-col><i-col span="12">
	<FormItem label="是否激活"><Row>
	<i-col span="11">
	<FormItem prop="isActiveMin">
	<InputNumber v-model="searchForm.isActiveMin" placeholder="请输入开始是否激活" style="width: 100%;"/>
</FormItem>
</i-col>
	<i-col span="2" style="text-align: center">-</i-col>
	<i-col span="11">
	<FormItem prop="isActiveMax">
	<InputNumber v-model="searchForm.isActiveMax" placeholder="请输入结束是否激活" style="width: 100%;"/>
</FormItem>
</i-col>
</Row>
</FormItem>
</i-col><i-col span="12">
	<FormItem label="区域、宿舍号" prop="area" label-for="area">
	<Input v-model="searchForm.area" element-id="area" placeholder="请输入区域、宿舍号" clearable/>
</FormItem>
</i-col><i-col span="12">
	<FormItem label="楼栋" prop="storiedBuilding" label-for="storiedBuilding">
	<Input v-model="searchForm.storiedBuilding" element-id="storiedBuilding" placeholder="请输入楼栋" clearable/>
</FormItem>
</i-col><i-col span="12">
	<FormItem label="学校" prop="school" label-for="school">
	<Input v-model="searchForm.school" element-id="school" placeholder="请输入学校" clearable/>
</FormItem>
</i-col><i-col span="12">
	<FormItem label="学校ID"><Row>
	<i-col span="11">
	<FormItem prop="schoolIdMin">
	<InputNumber v-model="searchForm.schoolIdMin" placeholder="请输入开始学校ID" style="width: 100%;"/>
</FormItem>
</i-col>
	<i-col span="2" style="text-align: center">-</i-col>
	<i-col span="11">
	<FormItem prop="schoolIdMax">
	<InputNumber v-model="searchForm.schoolIdMax" placeholder="请输入结束学校ID" style="width: 100%;"/>
</FormItem>
</i-col>
</Row>
</FormItem>
</i-col>
</Row>

            </Form>
            <div slot="footer">
                <Button type="text" size="large" @click="resetForm">清空</Button>
                <Button type="text" size="large" @click="cancelModal">取消</Button>
                <Button type="primary" size="large" @click="searchOkModal" :loading="loading.search">查询</Button>
            </div>
        </Modal>
    </div>
</template>

<script>
    import * as utils from '@/api/utils-v2'
    import * as ResponseStatus from '@/api/response-status'
    export default {
        name: 'ShippingAddressSearch',
        data() {
            return {
                modal: {
                    search: false
                },
                loading: {
                    search: false
                },
                urls: {
                    searchUrl: '/shipping-address/admin/pager-cond'
                },
                searchForm: {
                    pageNo: 1,
                    pageSize: 10,
                    sortColumn: null,
                    sortOrder: null,
                    id: null,
idMin: null, 
idMax: null, 
userId: null,
userIdMin: null, 
userIdMax: null, 
realName: null,
phone: null,
province: null,
city: null,
district: null,
addressAlias: null,
address: null,
isDefault: null,
isDefaultMin: null, 
isDefaultMax: null, 
version: null,
versionMin: null, 
versionMax: null, 
createTime: null,
createTimeMin: null, 
createTimeMax: null, 
updateTime: null,
updateTimeMin: null, 
updateTimeMax: null, 
isActive: null,
isActiveMin: null, 
isActiveMax: null, 
area: null,
storiedBuilding: null,
school: null,
schoolId: null,
schoolIdMin: null, 
schoolIdMax: null, 

                },
                dataDictCodes: ['IS_ACTIVE'],
                dataDictItems: {},
            }
        },
        computed: {},
        mounted() {},
        methods: {
            resetForm() {
                this.$refs.searchForm.resetFields()
            },
            cancelModal(modal) {
                this.modal.search = false
            },
            searchOkModal(modal) {
                this.modal.search = false
                this.$emit('searchTable', true)
            }
        }
    }
</script>

<style>
</style>